package com.softlab.retailwholesalesystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.softlab.retailwholesalesystem.entity.OrderEntity;
import com.softlab.retailwholesalesystem.entity.OrderGoodsMapEntity;
import com.softlab.retailwholesalesystem.entity.VO.QuickEntity;

import java.util.List;


public interface IOrderService extends IService<OrderEntity> {

    List<OrderEntity> searchOrders(OrderEntity order);

    Integer updateOrder(OrderEntity order);

    void setProfitAndTotalByType(OrderEntity order);

    void init();

    Integer confirm(OrderEntity order);

    Integer confirm2(OrderEntity order);

    QuickEntity saveQuick(QuickEntity quick);

    Long addQuickGoods(OrderGoodsMapEntity entity);

    Integer delQuickGoods(Long id);

    Long newQuick(String username);


}
